package org.colin.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.colin.dictPojo.DEntryImage;

import java.util.HashMap;
import java.util.List;

/**
 * <p>
 * 词典图片表 Mapper 接口
 * </p>
 *
 * @author LiRuiFeng
 * @since 2021-01-09
 */
public interface DEntryImageMapper extends BaseMapper<DEntryImage> {


    boolean createEntryImageTable(@Param("tableName") String newEntryTableName);

    List<HashMap> selectAllImageByEntryId(@Param("tableName")String imageTableName,@Param("id") Integer id);

    void deleteImageByEntryId(@Param("tableName")String imageTableName,@Param("id") Integer id);

    void addImage(@Param("tableName")String imageTableName,@Param("entry") DEntryImage dEntryImage);
}
